
#include "process.h"

char style[S_NUM]={'*','#','-','.','+'};

void ProncessOn()
{
    int cnt=0;
    //循环101次
    char bar[NUM];
    memset(bar,'\0',sizeof(bar));
    
    const char*lable="|\\-/";

    while(cnt<=100)
    {
        //binprintf("[%-100s][%-3d%%][%c]\r",bar,cnt,lable[cnt%4]);
        printf("\033[42;34m[%-100s][%-3d%%][%c]\033[0m\r",bar,cnt,lable[cnt%4]);
        fflush(stdout);
        bar[cnt++]=style[N];
        usleep(60000);
    }

    printf("\n");
}











